--编写者：alt
--功能介绍：蚁狮不地震攻击玩家
--使用方法：直接粘贴到模组环境 修改junna为人物prefab

--蚁狮不攻击
local SinkholeSpawner = require "components/sinkholespawner"
local oldDoTargetWarning = SinkholeSpawner.DoTargetWarning
function SinkholeSpawner:DoTargetWarning(targetinfo)
    local client = targetinfo and targetinfo.client
    local prefab = client and client.prefab
    if prefab == "junna" then
        print("if prefab == junna then")
        RemoveByValue(self.targets, targetinfo)
        return
    end
    return oldDoTargetWarning(self, targetinfo)
end